import {getRequest, postRequest} from '../request'

const app= {
  /** 获取首页公告 */
  getHomeNotice: () => postRequest('/api/noticecopy.Log/affiche'),
  /** 我的页面获取公告 */
  getUserNotice: () => postRequest('/api/noticecopy.Log/notice'),
  /** 获取公告详情 */
  getNoticeDetail: params => postRequest('/api/noticecopy.Log/genre', params),
  /** 获取产品列表 */
  getProductList: params => postRequest('/api/produce/Produce/type', params),
  /** 获取产品详情 */
  getProductDetail: params => postRequest('/api/produce/Produce/detail', params),
  /** 获取banner图标 */
  getBannerIcon: () => postRequest('/api/banner/Banner/banner'),
  /** 获取租赁流程 */
  getFlow: () => postRequest('/api/banner/Banner/flow'),
  /** 获取常见问题 */
  getQAndA: () => postRequest('/api/help/Article/article'),
  /** 获取客服信息 */
  getCustomerService: () => postRequest('/api/help.Service/service')
}

export default app